package com.zzq.demo.anno.aspect;

import com.zzq.demo.anno.annotation.MyAnno;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @ClassName: MyAnnoAop
 * @Description: TODO
 * @Author: zhaoziqian
 * @Date: 2019-07-21 21:19
 * @Version: 1.0
 **/
@Aspect
@Component
public class MyAnnoAop {

    @Pointcut("@annotation(com.zzq.demo.anno.annotation.MyAnno)")
    public void aspect() {
    }

    @Around("aspect()&&@annotation(anno)")
    public void around(ProceedingJoinPoint invocation, MyAnno anno) {

    }

}
